<template>
    <el-table align="center" :data="orderData" style="width: 100%">
        <el-table-column prop="goodName" label="商品名称">
        </el-table-column>
        <el-table-column prop="price" label="商品价格">
        </el-table-column>
        <el-table-column prop="createTime" label="订单时间">
        </el-table-column>
    </el-table>
</template>

<script>
import Service from '@/service/request'

export default {
    data() {
        return {
            orderData: []
        }
    },
    async created() {
        this.orderData = await Service.getOrderData(this.$store.state.userId)
        console.log('orderData>>>>', this.orderData)
    }
}
</script>

<style>

</style>